package com.todo.reward.infrastructure.mapper;

import com.todo.reward.infrastructure.entity.po.RewardCouponWORecordPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:18
 * @description
 */
@Mapper
public interface RewardCouponWORecordMapper {

    Boolean insertRewardCouponWORecordPO(RewardCouponWORecordPO rewardCouponWORecordPO);

    Boolean updateRewardCouponWORecordPO(RewardCouponWORecordPO rewardCouponWORecordPO);

    Boolean removeRewardCouponWORecordPOById(@Param("id") Long id);

    RewardCouponWORecordPO queryRewardCouponWORecordPOById(@Param("id") Long id);

    RewardCouponWORecordPO queryRewardCouponWORecordPOByDispatchRecordId(@Param("dispatchRecordId") Long dispatchRecordId);

    RewardCouponWORecordPO queryRewardCouponWORecordPOByWriteOffUk(@Param("writeOffUk") String writeOffUk);

    Boolean updateRecordWriteOffTypeById(@Param("id") Long id, @Param("oldType") int oldType, @Param("newType") int newType);
}
